{%extends 'registration/account_base.html'%}		
{% block title %}Login{% endblock %}
{% block init_javascripts %}
<script type="text/javascript">
	$(function(){
	     $("input:submit").button();
	     $( "a", ".demo" ).click(function() { return false; });
	});
</script>
{% endblock %}

{% block account_action_title %}Welcome Back{% endblock %}
{% block account_action_form%}
{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}

<form method="post" action="{% url django.contrib.auth.views.login %}" class="ui-widget">{% csrf_token %}
<table>
<tr>
    <td>{{ form.username.label_tag }}</td>
</tr>
<tr>
    <td>{{ form.username }}</td>
</tr>
<tr>
    <td>{{ form.password.label_tag }}</td>
</tr>
<tr>
    <td>{{ form.password }}</td>
</tr>
</table>
<p><a href="{% url auth_password_reset %}">Forgot</a> your password?  <a href="{% url registration_register %}">Need an account</a>?</p>

<input type="submit" class="super-emphasize" value="Sign In" />
<input type="hidden" name="next" value="{{ next }}" />
</form>

{% endblock %}